home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / profil.h.z / profil.h
C/C++ Source or Header  |  1992-04-03  |  1KB  |  42 lines

  1. #ifndef __SYS_PROFIL_H__
  2. #define __SYS_PROFIL_H__        /* Prevent nested includes */
  3.  
  4. /**************************************************************************
  5.  *                                      *
  6.  *          Copyright (C) 1990, Silicon Graphics, Inc.          *
  7.  *                                      *
  8.  *  These coded instructions, statements, and computer programs  contain  *
  9.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  10.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  11.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  12.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  13.  *                                      *
  14.  **************************************************************************/
  15.  
  16. #ident    "$Revision: 1.3 $"
  17.  
  18. struct prof {
  19.     void    *pr_base;    /* buffer base */
  20.     unsigned pr_size;    /* buffer size */
  21.     unsigned pr_off;    /* pc offset */
  22.     unsigned pr_scale;    /* pc scaling */
  23. };
  24.  
  25. #define PROF_USHORT    0x0001    /* treat pr_base as unsigned short array */
  26.  
  27. #ifdef _KERNEL
  28. extern int nprofile;
  29. #else /* !_KERNEL */
  30. /*
  31.  * Maximum number of prof structures that can be passed as an argument to
  32.  * the sprofil(2) system call. This can be changed at sysgen time by
  33.  * changing the parameter NPROFIL in the file /usr/sysgen/master.d/kernel.
  34.  */
  35. #define PROFIL_MAX    100
  36.  
  37. extern void profil(short *, int, int, int);
  38. extern int sprofil(struct prof *, int, struct timeval *tvp, unsigned int flags);
  39. #endif /* _KERNEL */
  40.  
  41. #endif /* __SYS_PROFIL_H__ */
  42.